package com.xbongbong.paas.pojo.workflow.settings.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author 吴峰
 * @date 2021/05/14 15:05
 */
@Getter
@Setter
@ToString
public class WorkflowUpdateNameDTO extends BaseDTO {

    private static final long serialVersionUID = 1939879033581661619L;
    @NotNull(message = "{dto.msg.workflowId.NotNull}")
    private Long workflowId;

    @NotEmpty(message = "{dto.msg.WorkflowUpdateNameDTO.name.NotEmpty}")
    @Length(max = 50, message = "{dto.msg.WorkflowNodePojo.name.Length}")
    private String name;
}
